Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[batch] fix retry of clone #8190

Merged
merged 1 commit into from
Feb 28, 2020
Merged

[batch] fix retry of clone #8190

merged 1 commit into from
Feb 28, 2020

Conversation

danking
Copy link
Contributor

@danking danking commented Feb 28, 2020

I want the function to exit in error if any step fails. I achieve this by
starting a sub-shell and setting -e inside that sub shell. That causes the
sub-shell to exit if any individual command fails.

Previously, the git clone could fail but clone would still return exit code
zero.

I want the function to exit in error if any step fails. I achieve this by
starting a sub-shell and setting -e inside that sub shell. That causes the
sub-shell to exit if any individual command fails.

Previously, the `git clone` could fail but `clone` would still return exit code
zero.
@danking danking merged commit d86e974 into hail-is:master Feb 28, 2020
@jigold
Copy link
Contributor

jigold commented Mar 18, 2020

This is still not working. https://ci.hail.is/batches/19141

@danking
Copy link
Contributor Author

danking commented Mar 18, 2020

OK, so. The issue seems to be that docker shuts down a connection when an invalid packet is received. moby/libnetwork#1090

Why git clone isn't exiting with a non-zero code and thus bailing out of the function, I don't know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants